.class public Lcom/waiqin365/lightwork/tracker/bi;
.super Landroid/widget/BaseAdapter;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;

.field private b:Ljava/util/ArrayList;


# direct methods
.method public constructor <init>(Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;)V
    .locals 1

    iput-object p1, p0, Lcom/waiqin365/lightwork/tracker/bi;->a:Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/bi;->b:Ljava/util/ArrayList;

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/bi;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    return-void
.end method

.method public a(Ljava/util/ArrayList;)V
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/bi;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    return-void
.end method

.method public b()Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/bi;->b:Ljava/util/ArrayList;

    return-object v0
.end method

.method public getCount()I
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/bi;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/bi;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .locals 2

    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 5

    if-nez p2, :cond_0

    new-instance v1, Lcom/waiqin365/lightwork/tracker/bj;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/bi;->a:Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;

    invoke-direct {v1, v0}, Lcom/waiqin365/lightwork/tracker/bj;-><init>(Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/bi;->a:Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;

    const v2, 0x7f030274

    const/4 v3, 0x0

    invoke-static {v0, v2, v3}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    const v0, 0x7f0c0c0e

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/login/mainview/CircleImageView;

    iput-object v0, v1, Lcom/waiqin365/lightwork/tracker/bj;->a:Lcom/waiqin365/base/login/mainview/CircleImageView;

    const v0, 0x7f0c0c11

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightwork/tracker/bj;->b:Landroid/widget/TextView;

    const v0, 0x7f0c0c12

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightwork/tracker/bj;->c:Landroid/widget/TextView;

    const v0, 0x7f0c0c13

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, v1, Lcom/waiqin365/lightwork/tracker/bj;->d:Landroid/widget/TextView;

    const v0, 0x7f0c0c14

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, v1, Lcom/waiqin365/lightwork/tracker/bj;->e:Landroid/view/View;

    invoke-virtual {p2, v1}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/bi;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightwork/tracker/model/t;

    iget-object v2, p0, Lcom/waiqin365/lightwork/tracker/bi;->b:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    add-int/lit8 v2, v2, -0x1

    if-ne p1, v2, :cond_1

    iget-object v2, v1, Lcom/waiqin365/lightwork/tracker/bj;->e:Landroid/view/View;

    const/16 v3, 0x8

    invoke-virtual {v2, v3}, Landroid/view/View;->setVisibility(I)V

    :goto_1
    iget-object v2, v1, Lcom/waiqin365/lightwork/tracker/bj;->b:Landroid/widget/TextView;

    iget-object v3, v0, Lcom/waiqin365/lightwork/tracker/model/t;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v2, v1, Lcom/waiqin365/lightwork/tracker/bj;->c:Landroid/widget/TextView;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v4, " ("

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v4, v0, Lcom/waiqin365/lightwork/tracker/model/t;->d:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string/jumbo v4, ")"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v2, v0, Lcom/waiqin365/lightwork/tracker/model/t;->a:Ljava/lang/String;

    iget-object v3, v1, Lcom/waiqin365/lightwork/tracker/bj;->a:Lcom/waiqin365/base/login/mainview/CircleImageView;

    invoke-virtual {v3, v2}, Lcom/waiqin365/base/login/mainview/CircleImageView;->setTag(Ljava/lang/Object;)V

    iget-object v2, p0, Lcom/waiqin365/lightwork/tracker/bi;->a:Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;

    invoke-static {v2}, Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;->b(Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;)Landroid/content/Context;

    move-result-object v2

    iget-object v3, v1, Lcom/waiqin365/lightwork/tracker/bj;->a:Lcom/waiqin365/base/login/mainview/CircleImageView;

    iget-object v4, v0, Lcom/waiqin365/lightwork/tracker/model/t;->k:Ljava/lang/String;

    invoke-static {v2, v3, v4}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;Landroid/widget/ImageView;Ljava/lang/String;)V

    const-string/jumbo v2, ""

    const-string/jumbo v2, "1"

    iget-object v3, v0, Lcom/waiqin365/lightwork/tracker/model/t;->o:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/bi;->a:Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;

    const v2, 0x7f0804ba

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    :goto_2
    iget-object v1, v1, Lcom/waiqin365/lightwork/tracker/bj;->d:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-object p2

    :cond_0
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightwork/tracker/bj;

    move-object v1, v0

    goto :goto_0

    :cond_1
    iget-object v2, v1, Lcom/waiqin365/lightwork/tracker/bj;->e:Landroid/view/View;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Landroid/view/View;->setVisibility(I)V

    goto :goto_1

    :cond_2
    const-string/jumbo v2, "2"

    iget-object v3, v0, Lcom/waiqin365/lightwork/tracker/model/t;->o:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/bi;->a:Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;

    const v2, 0x7f08003e

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_2

    :cond_3
    const-string/jumbo v2, "4"

    iget-object v3, v0, Lcom/waiqin365/lightwork/tracker/model/t;->o:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_4

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/bi;->a:Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;

    const v2, 0x7f0805b8

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_2

    :cond_4
    const-string/jumbo v2, "7"

    iget-object v3, v0, Lcom/waiqin365/lightwork/tracker/model/t;->o:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/bi;->a:Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;

    const v2, 0x7f08051a

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_2

    :cond_5
    const-string/jumbo v2, "8"

    iget-object v3, v0, Lcom/waiqin365/lightwork/tracker/model/t;->o:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_6

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/bi;->a:Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;

    const v2, 0x7f0804bb

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_2

    :cond_6
    const-string/jumbo v2, "6"

    iget-object v3, v0, Lcom/waiqin365/lightwork/tracker/model/t;->o:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_7

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/bi;->a:Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;

    const v2, 0x7f0804b7

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_2

    :cond_7
    const-string/jumbo v2, "5"

    iget-object v3, v0, Lcom/waiqin365/lightwork/tracker/model/t;->o:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_8

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/bi;->a:Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;

    const v2, 0x7f0804b9

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    goto/16 :goto_2

    :cond_8
    const-string/jumbo v2, "3"

    iget-object v0, v0, Lcom/waiqin365/lightwork/tracker/model/t;->o:Ljava/lang/String;

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_9

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/bi;->a:Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;

    const v2, 0x7f0804b8

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    goto/16 :goto_2

    :cond_9
    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/bi;->a:Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;

    const v2, 0x7f080518

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightwork/tracker/TrackerStatusDetailActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    goto/16 :goto_2
.end method
